Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Same as mz, but wrap many popular modules rather than core API.
Node require >= 4.0.0
Install it
$ npm i mz-modules
Require it
const mkdirp = require('mz-modules/mkdirp');
You can also require it from the main entry, but it will load other modules in mz-modules.
const mkdirp = require('mz-modules').mkdirp;
Use it
// Using promise
mkdirp('/path/to/dir').then(() => console.log('done'));
// Or if you are using async function
async function doSomething() {
await mkdirp('/path/to/dir');
}
Warning: nextTick and setImmediate is little slower than callback, because promise queue is after nextTick.
mz-modules/mkdirp
wrapped mkdirpmz-modules/rimraf
wrapped rimrafmz-modules/glob
wrapped globmz-modules/sleep
wrapped ko-sleepmz-modules/nextTick
wrapped process.nextTickmz-modules/setImmediate
wrapped setImmediatemz-modules/pump
wrapped pumpYou can request adding module to mz-modules
xx
xx.js
that exports a function should return promise.xx.js
in index.js
test/xx.test.js
package.json
FAQs
modernize node.js modules to current ECMAScript standards
The npm package mz-modules receives a total of 40,234 weekly downloads. As such, mz-modules popularity was classified as popular.
We found that mz-modules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.